package com.joysuch.wwyt.bp.bean.facility;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.edu.bean.EduCertEditUserNameBean;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.time.LocalTime;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/9/10 9:48
 */
@Data
public class BpProductionFacilityTypeBean {

    private Long id;
    @NotBlank(message = "名称不能为空")
    private String name;
    private Integer number;
    @NotNull(message = "parentId cannot be null")
    private Long parentId;
    //是否到期提醒 0 否 ; 1 是
    @NotNull(message = "是否到期提醒不能为空")
    @Range(min = 0, max = 1)
    private Byte expireRemindOrNot;
    //到期提醒类型
    private String remindType;
    //提醒时间
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalTime remindTime;
    //提醒人和部门互斥
    //提醒人可以多个
    private List<Long> remindUserIds;
    private List<EduCertEditUserNameBean> userNames;
    //提醒部门
    private Long departId;
    private EduCertEditUserNameBean departName;
    //0 人员; 1 部门
    private Byte userDepartFlag;
}
